package com.uam.service;

import com.uam.web.common.model.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author uam
 * @create 2023/12/3 15:38
 * @email uam@uam.com
 */
public interface TaskService {
    Result create(HttpServletRequest request, String taskName, Long airplaneId, String startTime, Long startPoint, Long destination, Integer mode, List<Long> transitPoints, String  rectanglePoint);

    Result selectTaskList(Integer pageNum, Integer pageSize, List<Integer> status, String taskName, String createLoginName);

    Result uploadTaskFile(HttpServletRequest request, MultipartFile file);

    Result verify(HttpServletRequest request, String fileUrl);

    Result createBatch(HttpServletRequest request, String redisKey,String rectanglePoint);

    Result edit(Integer taskId, Integer status, String startTime);

    void export(HttpServletResponse response, String startTime, String endTime);
}
